#ifndef SELECTFRIENDITEM_H
#define SELECTFRIENDITEM_H

#include <QCheckBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushbutton>
#include <QWidget>
#include<QPushButton>
#include"selectfriendscrollarea.h"
class SelectFriendItem : public QWidget
{
    Q_OBJECT
public:
    explicit SelectFriendItem(SelectFriendScrollArea*owner,const QString& userid,const QIcon&avatorIcon,const QString& name,bool checked,QWidget *parent = nullptr);
    const QString userID();
    void setChecked(bool check);
    QCheckBox*getCheckBox();
private:
    QHBoxLayout*layout;
    QCheckBox*checkbox;
    QPushButton*avator;
    QLabel*namelabel;
    SelectFriendScrollArea*owner;
    bool isSelected;
    QString userid;
};

#endif // SELECTFRIENDITEM_H
